package com.lms.generictype.demo5;

import java.lang.reflect.Array;

/**
 * @Author: 李孟帅
 * @CreateTime: 2020-01-16 17:55
 * @Description:
 */
public class Student<T> {
    private T[] array;

    public Student(Class<T> clz,int length) {
         array = (T[]) Array.newInstance(clz, length);
    }


}
